using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using WebUpdaterAdminCore.Models;

namespace WebUpdaterAdminCore
{
    /// <summary>
    /// 上传结果
    /// </summary>
    public class UploadResultViewModel :BaseResult
    {

        public UploadResultViewModel(int code,string msg): base(code, msg)
        {

        }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="siteId">站点Id</param>
        /// <param name="fileMd5">上传文件Md5值</param>
        /// <param name="version">获取到的版本号</param>
        public UploadResultViewModel(string siteId,string fileUrl,string fileMd5,string version) : this(0, "OK")
        {
            SiteId = siteId;
            WebPackMd5 = fileMd5;
            WebPacketUrl = fileUrl;
            WebVersion = version;
        }

        public string SiteId { get; set; }

        public string WebPacketUrl { get; set; }

        public string WebPackMd5 { get; set; }

        public string WebVersion { get; set; }


    }
}
